package com.jn.personal;

import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.jn.common.database.DBHelper;
import com.jn.common.utils.SpUtils;

@Route(path = "/personal/PersonalActivity")
public class PersonalActivity extends AppCompatActivity {

    private TextView mCountView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_personal);
        mCountView = findViewById(R.id.count);
        //SpUtils spUtils = new SpUtils(this);
        //int count = spUtils.getInt("count", 0);

        DBHelper dbHelper = DBHelper.getInstance(this);
        int count = dbHelper.getMoneyByName(dbHelper.getLoginUser());
        mCountView.setText(String.valueOf(count));
    }
}